import 'package:json_annotation/json_annotation.dart';

part 'home_domain_model.g.dart';

@JsonSerializable(includeIfNull: false)
class HomeDomainModel {
  HomeDomainModel(
    this.domainCount,
    this.scheduleCount,
    this.bidCount,
    this.renewCount,
    this.waitPayCount,
    this.onSellCount,
  );

  @JsonKey(defaultValue: 0)
  int domainCount;
  @JsonKey(defaultValue: 0)
  int scheduleCount;
  @JsonKey(defaultValue: 0)
  int bidCount;
  @JsonKey(defaultValue: 0)
  int renewCount;
  @JsonKey(defaultValue: 0)
  int waitPayCount;
  @JsonKey(defaultValue: 0)
  int onSellCount;

  factory HomeDomainModel.fromJson(Map<String, dynamic> json) =>
      _$HomeDomainModelFromJson(json);
  Map<String, dynamic> toJson() => _$HomeDomainModelToJson(this);
}
